<!DOCTYPE html>
<html lang="zh-cn">

<head>
  <title>IT山人知识库</title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width,initial-scale=1">
  <meta charset="UTF-8">
  <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css">
  <!-- <link rel="stylesheet" href="/dependencies/vue.css"> -->
  <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css" />
  <!-- <link href="https://cdn.bootcdn.net/ajax/libs/prism/9000.0.1/themes/prism-coy.min.css" rel="stylesheet"> -->
  <!-- <link href="https://cdn.bootcdn.net/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> -->
  <link href="/_dependencies/font-awesome/css/font-awesome.min.css" rel="stylesheet">
</head>

<body>
  <div id="app">加载中...</div>
  <!-- <script src="https://cdn.bootcdn.net/ajax/libs/mermaid/8.5.2/mermaid.min.js"></script>
  <script src="https://cdn.bootcdn.net/ajax/libs/raphael/2.3.0/raphael.min.js"></script>
  <script src="https://cdn.bootcdn.net/ajax/libs/flowchart/1.13.0/flowchart.min.js"></script> -->
  <script src="/_dependencies/mermaid/mermaid.min.js"></script>
  <script src="/_dependencies/raphael/raphael.js"></script>
  <script src="/_dependencies/flowchart/flowchart.min.js"></script>
  
  <script>
    var num = 0;
    mermaid.initialize({
      startOnLoad: false
    });
    window.$docsify = {
      name: '<i class="fa fa-book"></i> IT山人知识库',
      repo: 'https://gitee.com/freemantc/freemantc',
      homepage: '_homepage.md',
      loadSidebar: true,
      loadNavbar: true,
      alias: {
        '/.*/_sidebar.md': '/_sidebar.md'
      },
      subMaxLevel: 3,
      auto2top: true,
      markdown: {
        renderer: {
          code: function (code, lang) {
            if (lang === "mermaid") {
              return (
                '<div class="mermaid">' + mermaid.render('mermaid-svg-' + num++, code) + "</div>"
              );
            }
            if (lang === "flow") {
              return (
                '<div class="flow" id="flow_' + (num++) + '">' + code + '</div>'
              );
            }
            return this.origin.code.apply(this, arguments);
          }
        }
      },
      search: {
        placeholder: '搜索',
        noData: '找不到结果',
        paths: 'auto'
      },
      plantuml: {
        skin: 'classic',
        serverPath: 'http://www.plantuml.com/plantuml/png/'
      },
      count: {
        countable: true,
        fontsize: '0.9em',
        color: 'rgb(90,90,90)',
        language: 'chinese'
      },
      copyCode: {
        buttonText: '点击复制',
        errorText: '错误',
        successText: '已复制'
      },
      plugins: [
        function (hook, vm) {
          hook.ready(function () {
            var flowcharts = document.getElementsByClassName('flow');
            for (let i = 0; i < flowcharts.length; i++) {
              var flow = flowcharts[i];
              try {
                var diagram = flowchart.parse(flow.textContent);
                flow.innerHTML = '';
                diagram.drawSVG(flow.id);
              } catch (error) {
                flow.innerHTML = '<pre class="language-text">' + error.toString() + '</pre>';
              }
            }
          });
        }
      ],
      pagination: {
        previousText: '上一篇',
        nextText: '下一篇',
      },
      //themeColor: '#25798A',
      formatUpdated: '{YYYY}-{MM}-{DD} {HH}:{mm}'
    }
  </script>
  <script src="//cdn.jsdelivr.net/npm/docsify@latest/lib/docsify.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/docsify@latest/lib/plugins/search.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/docsify@latest/lib/plugins/zoom-image.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/emoji.min.js"></script>

  <script src="//cdn.jsdelivr.net/npm/docsify-count@latest/dist/countable.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/docsify-copy-code"></script>
  <script src="//cdn.jsdelivr.net/npm/docsify-katex@latest/dist/docsify-katex.js"></script>

  <script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-markdown.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-bash.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-java.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-csharp.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-sql.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-matlab.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-latex.min.js"></script>

  <!-- <script src="//unpkg.com/docsify-plantuml/dist/docsify-plantuml.min.js"></script> -->
  <script src="/_dependencies/docsify-plantuml@1.3.2/docsify-plantuml.min.js"></script>
  <script src="/_dependencies/docsify-pagination@2.6.0/docsify-pagination.min.js"></script>

</body>

</html>

<!-- https://docsify.js.org/#/zh-cn/ -->